package com.zbkj.service.service.user.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.zbkj.common.model.user.FeedbackInfo;
import com.zbkj.common.model.user.User;
import com.zbkj.common.page.CommonPage;
import com.zbkj.common.request.PageParamRequest;
import com.zbkj.common.response.user.FeedbackInfoResonse;
import com.zbkj.service.dao.user.FeedbackInfoMapper;
import com.zbkj.service.service.user.FeedbackInfoService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 反馈意见表 服务实现类
 * </p>
 *
 * @author 
 * @since 2024-11-30
 */
@Service
public class FeedbackInfoServiceImpl extends ServiceImpl<FeedbackInfoMapper, FeedbackInfo> implements FeedbackInfoService {

    @Resource
    private FeedbackInfoMapper feedbackInfoMapper;
    @Override
    public PageInfo<FeedbackInfoResonse> adminGetFeedbackList(PageParamRequest queryRequest) {
        Page<User> pageObj = PageHelper.startPage(queryRequest.getPage(), queryRequest.getLimit());
        List<FeedbackInfoResonse> list = feedbackInfoMapper.adminGetFeedbackList(queryRequest);
        return CommonPage.copyPageInfo(pageObj,list);

    }
}
